The Config class contains all the method related to reader configuration. The ResetFactoryDefaultsmethod informs the reader to set all configurable values to factory defaults.
// Reset to Factory defaults
rfid3.Config.ResetFactoryDefaults();
The set of functions are available for controlling the GPIO ports of the Reader. The number of GPIs and GPOs supported by the reader can be queried from the reader capabilities. In general sensors will be connected to input ports and indicator or lights will be connected to output ports.
The property GPI is the indexer to the GPI ports available in the reader. The specified port can be accessed by passing the index.
IsEnabled property can be used to get the current configuration and state of the specified port number.
The Enable property enables the specified port number. It is possible to register for GPI Port state change notification. Before registering, the interested port must be enabled
// Enable GPI port 1
rfid3.Config.GPI[1].Enable = true;
The GPO property is the indexer and allows to get or set the current state of the specified output port number.
// Set the state of GPO port 1
rfid3.Config.GPO[1].PortState = GPOs.GPO_PORT_STATE.TRUE;
This is applicable for hand held readers and FX7500. The property rfid3.Config.RadioPowerState gets/sets the current power state of the RFID Radio Module whether it is turned ON or OFF.
// gets Radio Power state
RADIO_POWER_STATE radioPowerState = rfid3.Config.RadioPowerState;
This is applicable only for handheld readers. The property rfid3.Config.DutyCycleIndex gets/sets the Duty cycle of the RFID Radio Module as an index to rfid3.ReaderCapabilities.DutyCycleValues.
// Set the Duty cycle
rfid3.Config.DutyCycleIndex = (ushort)(rfid3.ReaderCapabilities.DutyCycleValues.Length - 1);
The config class contains the Antennas indexer property. The individual antenna can be accessed and configured using the index.
The AntennaProperties is used to set the antenna configuration to individual antenna or all the antennas.
The antenna configuration (SetConfg method) comprises of Antenna ID, Receive Sensitivity Index, Transmit Power index, Transmit Frequency Index. These indexes are refers to the Receive Sensitivity table, Transmit Power table, Frequency Hop table or Fixed Frequency table respectively. These tables are available in Reader capabilities. GetConfig method gets the antenna configuration for the given antenna ID indexer.
RF Configuration
The method SetAntennaRfConfig is added to configure antenna RF configuration to individual antenna or all the antennas. This method is similar like SetConfig but includes additional parameters specific pertaining to antenna.
The configuration includes Receive Sensitivity Index, Transmit Power index, Transmit Frequency Index, RF Mode Table index. These indexes are refers to the Receive Sensitivity table, Transmit Power table, Frequency Hop table or Fixed Frequency table, RF Mode table respectively. These tables are available in Reader capabilities. Also, includes tari, transmit port, receive port and Antenna Stop trigger condition. The stop condition can be ‘n’ number of attempts, duration based.
The method GetSingulationControl retrieves the current settings of the singulation control from the reader for the given Antenna ID.
To set the singulation control settings, the SetSingulationControl method will be used. The following settings can be configured:
// Get Singulation Control for the antenna 2
Antennas.SingulationControl singulationControl;
singulationControl = rfid3.Config.Antennas[2].GetSingulationControl();
The physical antenna properties of the individual antenna can be known by using PhysicalProperties. The property gets the gain and the connectivity status of the specified antenna.